#include "myScreen.h"

MyScreen::MyScreen()
{
}

MyScreen::~MyScreen()
{
}

void MyScreen::Render()
{
	// This will draw the texture in the center of the screen.
	this->pEngine->GetGraphics()->DrawTexture(this->pMyTexture,
											  (this->ScreenWidth() / 2.0f) - (this->pMyTexture->GetWidth() / 2.0f),
											  (this->ScreenHeight() / 2.0f) - (this->pMyTexture->GetHeight() / 2.0f));
}

void MyScreen::Update(float fDelta)
{
	
}

void MyScreen::Load()
{
	this->pMyTexture = this->pEngine->GetGraphics()->LoadTexture("media/animation.jpg");
}

void MyScreen::Unload()
{
	this->pEngine->GetGraphics()->UnloadTexture(this->pMyTexture);
}